{include file=member.header.html}
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
	$('.checkitem').attr('checked', false);//用于删除时返回复选框全部取消
});
</script>
<style type="text/css">
</style>
<div class="content_color">
<div class="content">
{include file=member.menu.html}
<div id="right">
{include file=member.submenu.html}
<div class="wrap">
  <div class="searchTop">
  <form method="get">
    <input type="hidden" name="app" value="my_kdyubao" />
    状态：<select name="status">
	<option value="-1">所有记录</option>
	<option value="0" {if $smarty.get.status eq '0'}selected="selected"{/if}>未入库</option>
    <option value="1" {if $smarty.get.status eq '1'}selected="selected"{/if}>已入库</option>
	<option value="2" {if $smarty.get.status eq '2'}selected="selected"{/if}>已发出</option>
    <option value="3" {if $smarty.get.status eq '3'}selected="selected"{/if}>转仓件</option>
    <option value="4" {if $smarty.get.status eq '4'}selected="selected"{/if}>问题件</option> 
    <option value="5" {if $smarty.get.status eq '5'}selected="selected"{/if}>待认领</option>
    <option value="6" {if $smarty.get.status eq '6'}selected="selected"{/if}>已取消</option>   
	</select>
    关键词：<input class="queryInput" type="text" name="key" value="{$smarty.get.key|escape}" placeholder="商品名称、包裹运单号" style="width:220px"/>&nbsp;
    添加时间：<input type="text" value="{$smarty.get.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" /> 至
    <input type="text" value="{$smarty.get.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
    <input type="submit" class="formbtn" value="查询" />
  </form>
  </div>
  
  <form action="" method="post" id="form_post" target="_blank">
  <div class="public_select table">
  <table width="100%" cellspacing="0">
    <tr class="gray">
      <th width="20" class="firstCell"><input type="checkbox" class="checkall" /></th>
        <th>包裹预报运单号</th>
        <th width="80">状态</th>
        <th width="250">物品名称</th>
        <th>物品数量</th>
        <th>物品价值</th>
        <th>物品重量</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    <!--{foreach from=$yubaos item=list name=_goods_f}-->
    <tr class="line">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{if $list.status eq 0}{$list.yubao_id}{/if}" {if $list.status gt 0}disabled="disabled"{/if}/></td>
        <td class="left_style">{$list.PostOfficeID|escape}:{$list.yundanhao|escape}</td>
        <td><!--{if $list.status eq '0'}--><font color="#f00">未入库</font>
        <!--{elseif $list.status eq '1'}--><font color="#009966">已入库</font>
        <!--{elseif $list.status eq '2'}--><font color="#FF9900">已发出</font>
        <!--{elseif $list.status eq '3'}--><font color="#3399CC">转仓件</font>
        <!--{elseif $list.status eq '4'}--><font color="#00f">问题件</font>
        <!--{elseif $list.status eq '5'}--><font color="#FF00FF">待认领</font>
        <!--{elseif $list.status eq '6'}--><font color="#999">已取消</font>
        <!--{/if}--></td>
        <td width="250" style="line-height:120%">{$list.GoodsName}</td>
        <td>{$list.GoodsCount}</td>
        <td>${$list.GoodsWorth}</td>
        <td>{$list.GoodsWeight} LB</td>
        <td>{$list.addtime|date}</td>
        <td><!--{if $list.status eq 0}--><a href="javascript:drop_confirm('删除后不可恢复，您确定要删除吗','index.php?app=my_kdyubao&act=drop&id={$list.yubao_id}');" class="links">删除</a><!--{/if}--></td>
    </tr>   
    <!--{foreachelse}-->
    <tr class="line">
      <td colspan="9" style="padding:8px; color:#F00; text-align:center; font-size:14px;">没有相关记录</td>
        </tr>      
    <!--{/foreach}-->
  </table>
  </div>
  </form>
  <table width="100%" cellspacing="5">
    <tr>
      <td height="35"><label><input type="checkbox" id="all2" class="checkall"/> 全选</label>
      <a href="javascript:void(0);" uri="index.php?app=my_kdyubao&amp;act=drop&page={$page_info.curr_page}" ectype="batchbutton" name="id" class="lcj_btn" presubmit="confirm('确定要删除选择的记录吗？删除后不可恢复，请谨慎操作');">删除</a>
      </td>
      <td>{include file=member.page.bottom.html}</td>
    </tr>      
  </table>    
</div></div>
<div class="clear"></div>
</div>
</div>
{include file=footer_member.html}